<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<table border="1">
    <caption>表格标题</caption>
    <tr><!--tr表示行  td表示列-->
        <!--colspan跨列-->
        <td colspan="2" align="center">1-1</td>
        <td>1-3</td>
        <!--rowspan跨行-->
        <td rowspan="2">1-4</td>
    </tr>
    <tr>
        <td>2-1</td>
        <td>2-2</td>
        <td>2-3</td>
    </tr>
    <tr>
        <td>3-1</td>
        <td>3-2</td>
        <td>3-3</td>
        <td>3-4</td>
    </tr>
</table>
<h1>表格练习</h1>
<table border="1">
    <tr>
        <td colspan="2" align="center">1-1</td>
        <td rowspan="2">1-2</td>
    </tr>
    <tr>
        <td rowspan="2">2-2</td>
        <td>2-2</td>
    </tr>
    <tr>
        <td colspan="2" align="center">3-1</td>
    </tr>
</table>


<table border="1">
<caption>订单列表</caption>
<tr><!--table header 表头  加粗并居中-->
    <th>编号</th>
    <th>商品名</th>
    <th>价格</th>
</tr>
<tr>
    <td>1</td>
    <td>小米手机</td>
    <td>4000</td>
</tr>
<tr>
    <td>2</td>
    <td>苹果电脑</td>
    <td>3000</td>
</tr>
<tr>
    <td>总价</td>
    <td colspan="2">7000</td>
</tr>
</table>
</body>
</html>